package com.naiterui.ehp.bs.ds.modules.goods.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.naiterui.ehp.bp.constants.SwaggerTag;
import com.naiterui.ehp.bp.security.annotation.SysLog;
import com.naiterui.ehp.bs.ds.modules.goods.entity.Classification;
import com.naiterui.ehp.bs.ds.modules.goods.service.IClassificationService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;

/**
 * 药理分类
 */
@Slf4j
@RestController
@Api(tags = {SwaggerTag.DS + SwaggerTag.MEDICINE_DRUG})
@RequestMapping("classification")
public class ClassificationController {

    @Autowired
    private IClassificationService categoryService;

    @SysLog("药理分类")
    @ApiOperation(value = "药理分类")
    @GetMapping("/pharmacology/list")
    public List<Classification> pharmacology() {
        return this.categoryService.pharmacology();
    }

}
